# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=python-memory-allocator
_pypiname=memory_allocator
pkgver=0.1.3
pkgrel=2
pkgdesc='An extension class to allocate memory easily with cython'
arch=(loong64 x86_64)
url='https://github.com/sagemath/memory_allocator'
license=(GPL3)
depends=(python)
makedepends=(cython python-build python-installer python-setuptools python-wheel)
source=(https://pypi.io/packages/source/m/$_pypiname/$_pypiname-$pkgver.tar.gz)
sha256sums=('13805c2ae1c01b7489fab5e8eac9361662b4f2c02412e3652eece48ff6953162')

build() {
  cd $_pypiname-$pkgver
  python -m build --wheel --no-isolation
}

package() {
  cd $_pypiname-$pkgver
  python -m installer --destdir="$pkgdir" dist/*.whl
}
